<?php
$loader->requireOnce('includes/LabAssignment/LabGroupModel.class.php');
 /* model for lab assignment 
 * @package modules.dept_laboratory.includes
 * @author viethd
 * @version $Id$
 * @copyright 2009 LHV Company
 */
class LabAssignmentModel {    
	private $_listOfLabGroupModel = array();
	private $_arrayOfLabGroupModel = array();
    function __construct() {
    	$labGroup = Celini::newOrdo("LabGroup");
    	$labGroups = $labGroup->loadLabGroups();
    	foreach ($labGroups as $groupRow) {
    		$labGroupModel = new LabGroupModel();
    		$labGroupModel->setData($groupRow);
            $this->_listOfLabGroupModel[$groupRow['lab_group_id']] = $labGroupModel;
            $this->_arrayOfLabGroupModel[$groupRow['lab_group_id']] = $groupRow['name'];
    	}
    	    	
    }
    public function listLabGroupModel() {
    	return $this->_listOfLabGroupModel;
    }
    public function labGroupModelToArray() {
        return $this->_arrayOfLabGroupModel;
    }
    public function labGroupModelToHTMLModel() {    	
    	
    }
}
?>